package handle

import (
	"github.com/gofiber/fiber/v2"
)

func NewProtobuf() Protobuf {
	return Protobuf{}
}

type Protobuf struct {
}

func (r Protobuf) InitRoute(server *fiber.App) {
	p := server.Group("/protobuf")
	p.Get("/", r.ReadProtobuf())
	p.Post("/", r.Protobuf())
}
func (r Protobuf) Protobuf() fiber.Handler {
	return func(ctx *fiber.Ctx) error {
		return ctx.SendString(ctx.Protocol())
	}
}
func (r Protobuf) ReadProtobuf() fiber.Handler {
	return func(ctx *fiber.Ctx) error {
		return nil
	}
}
